package com.hippoDocker.uaa;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@EnableDiscoveryClient //开启nacos服务注册
@EnableFeignClients(basePackages = {"com.hippoDocker.uaa.feignclient.**"})  //启动OpenFeign
@ComponentScan(value = {"com.hippoDocker.uaa.**"},basePackages = {"com.hippoDocker.uaa.**"})  //spring自动扫描类
@EnableWebMvc
@MapperScan(value = "com.hippoDocker.uaa.mapper") //mapper扫描路径
public class UaaApplication {

    public static void main(String[] args) {
        SpringApplication.run(UaaApplication.class, args);
    }

}
